package vo;

import java.util.Date;

public class Custom { //客户表
    private String cname;//姓名
    private String cnumber;//电话
    private String caddress;//地址
    private int furniture_id;//购买物品的种类--->id
    private int count;//购买的数量
    private String time;//购买的时间

    public Custom(String cname, String cnumber, String caddress, int furniture_id, int count, String time) {
        this.cname = cname;
        this.cnumber = cnumber;
        this.caddress = caddress;
        this.furniture_id = furniture_id;
        this.count = count;
        this.time = time;
    }

    public Custom(String cname) {
        this.cname = cname;
    }

    @Override
    public String toString() {
        return "Custom{" +
                "客户名称:'" + cname + '\'' +
                ", 客户电话:'" + cnumber + '\'' +
                ", 客户住址:'" + caddress + '\'' +
                ", 客户购买物品的编号" + furniture_id +
                ", 客户购买的数量" + count +
                ", 客户购买的时间" + time +
                '}';
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getCnumber() {
        return cnumber;
    }

    public void setCnumber(String cnumber) {
        this.cnumber = cnumber;
    }

    public String getCaddress() {
        return caddress;
    }

    public void setCaddress(String caddress) {
        this.caddress = caddress;
    }

    public int getFurniture_id() {
        return furniture_id;
    }

    public void setFurniture_id(int furniture_id) {
        this.furniture_id = furniture_id;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }
}
